<%@page import="java.util.List"%>
<%@page import="sdfi.lee.DAO.LabDAO"%>
<%@page import="sdfi.lee.Entity.Lab"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="../css/index.css" />
<link rel="stylesheet" href="../css/level.css" />
<script type="text/javascript" src="../js/jquery-1.6.js" ></script>
<script type="text/javascript" src="../js/index.js"></script>
<title>国家新药创制平台</title>
</head>
<body>
<%
	LabDAO labdao=new LabDAO();
	Lab lab=labdao.getLabById(Integer.valueOf(request.getParameter("lid")));
	List<Lab> list=labdao.getAllLab(Integer.valueOf(request.getParameter("pg")).intValue()+1,5);
	request.setAttribute("lab",lab);
	request.setAttribute("list",list);
%>
<div class="divhead">当前位置：&nbsp;&nbsp;<a href="<c:url value='/index.jsp'/>" >首页</a>
	&gt;&nbsp;&nbsp;<a href="<c:url value='/enterprise/lablist.jsp?pg=1' />">国家重点实验室</a>
</div>
<div id="divshowcontain">

	<div id="divleft">
	<div class="div_content_title">${requestScope.lab.labname }</div>
			<div class="div_content_fenge1"></div>
            <div class="div_content_fenge2"></div>
			<div class="div_detail">
				${requestScope.lab.labdescribe}
			</div>
			<%
				if(lab.getTasks()!=null&&lab.getTasks().size()>0)
				{
						request.setAttribute("tasks",lab.getTasks());
			%>
				<div class="show_head">项目列表：</div>
		<div style="padding-left:30px;margin-bottom:10px">
			<c:forEach items="${requestScope.tasks}" var="task">
				<c:url value="/renwuqiye/taskdetail.jsp" var="turl">
					<c:param name="tid" value="${task.id}"></c:param>
				</c:url>
				<div class="druglist"><a href="${turl}">${task.taskname}</a></div>
			
			</c:forEach>
		</div>
			<%
				}
			%>
			<%
			if(lab.getYiqis()!=null&&lab.getYiqis().size()>0)
			{
					request.setAttribute("yiqis",lab.getYiqis());
			%>
				<div class="show_head">仪器列表：</div>
		<div style="padding-left:30px;margin-bottom:10px">
			<c:forEach items="${requestScope.yiqis}" var="yiqi">
				<c:url value="/renwuqiye/yiqidetail.jsp" var="yurl">
					<c:param name="yid" value="${yiqi.id}"></c:param>
				</c:url>
				<div class="druglist"><a href="${yurl}">${yiqi.yiqiname}</a></div>
			
			</c:forEach>
		</div>
			<%
				}
			%>
			
		
	</div>
    <div id="divmid"></div>
    <div id="divright">
    	<c:forEach items="${requestScope.list}" var="lab">
        	<div class="newsitem">
            	<div class="newstitle"><a  href="<c:url value='/enterprise/labdetail.jsp?lid=${lab.id}&pg=${param.pg+1}' />">${lab.labname}</a></div>
                <div class="newsdate">&nbsp;</div>
            </div>
        </c:forEach>
    </div>
	<div style="clear:left"></div>

</div>
</body>
</html>